import request from '@/utils/request'

// 查询风险地区管理列表
export function listManagement(query) {
    return request({
        url: '/aqsc/management/list',
        method: 'get',
        params: query
    })
}

// 根据id查询风险地区详细信息
export function getManagement(partitionId) {
    return request({
        url: '/aqsc/management/' + partitionId,
        method: 'get'
    })
}
// 查询负责人
export function getUserList(query){
  return request({
    url: 'aqsc/management/userList',
    method: 'get',
    params: query
  })
}
// 新增/修改分区管理
export function addOrUpdateManagement(data) {
    return request({
        url: '/aqsc/management',
        method: 'post',
        data: data
    })
}

// 查询工艺类型的列表
export function processList(data){
  return request({
    url: 'aqsc/management/processList',
    method: 'post',
    data: data
  })
}

// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}
// 批量删除分区管理
export function delManagement(partitionIds) {
    return request({
        url: '/aqsc/management/' + partitionIds,
        method: 'delete'
    })
}
